<template>
  <div>
    授权页面
    <div @click="btn()">btn</div>
  </div>
</template>
<script>
import { Toast } from "vant";

export default {
  components: {},
  data() {
    return {};
  },
  created() {
    let linkid = this.$route.query.linkid;
    if (linkid) {
      this.$store.dispatch("setlinkid", linkid); //设置离店当前订单的离店状态
    }
    //    debugger;
    if (this.$store.state.linkid != -1) {
      this.$router.replace("/lackMateriaTodoList"); //这里填你默认跳转的地址  G00909532
    } else {
      Toast.loading({
        message: "未登录",
        forbidClick: true,
      });
    }
  },
  mounted() {},
  methods: {
    btn() {
      Toast.loading({
        message: "加载中...",
        forbidClick: true,
      });
    },
  },
};
</script>
<style scoped lang="less">
</style>